home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / hypprn.cpp < prev    next >
C/C++ Source or Header  |  1994-10-10  |  1KB  |  31 lines

  1. #include "hypprn.h"
  2.  
  3. HypertextPrint::HypertextPrint(rect coord, char* vName, char* fName,
  4.            int res, int interv,
  5.            BORDERS b_type, int s, char* h, int bak, int attr,
  6.            int p_height)
  7.        : HypertextView(coord, vName, fName, res, interv, b_type, s, h, bak,
  8.                        attr, p_height)
  9.     {
  10.     int sx = textX(s);
  11.     int sy = textY(s);
  12.  
  13.     print_to_prn = new Button(rect(coord.origin.X + 10 + sx,
  14.     coord.corner.Y - 2 - sy, coord.origin.X + 30 + sx,
  15.     coord.corner.Y - sy - 1), " PRINTER ");
  16.     print_to_prn->set_ret(1);
  17. /*    print_to_file = new Button(rect(coord.origin.X + 30 + sx,
  18.     coord.corner.Y - 2 - sy, coord.origin.X + 50 + sx,
  19.     coord.corner.Y - sy - 1), "    FILE   ");
  20.     print_to_file->set_ret(1);
  21. */
  22.     insert(print_to_prn, 2);
  23. //    insert(print_to_file, 2);
  24.  
  25. //    assign(view_win, print_to_file, AC_OK);
  26.     assign(view_win, print_to_prn, AC_OK);
  27.  
  28.     view_win->set_ret(RET_OK | RET_CANCEL);
  29.     }
  30. /////////////////////////////////
  31.